<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			
		</style>
	</head>
	<body>
		<div>111</div>
		<script type="text/javascript">
			var div = document.getElementsByTagName("div")[0];
			div.onclick = function(){
				alert(1);
			}
			
			//第二种属性绑定
			div["onclick"] = function (){
				alert(2);
			}
			
			   console.log(div.onclick);
			   console.log(div.onmouseover);
			
			// div.removeEventListener("click",fn);

		</script>
	</body>
</html>
